//
//  ALData.m
//  __PRODUCTNAME__
//
//  Created by 鹏飞罗 on 16/08/15
//  Copyright (c) dllo. All rights reserved.
//

#import "ALData.h"
#import "ALAction.h"
@implementation ALData
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"action"]) {
        ALAction *alAction = [ALAction modelWithDictionary:value];
        _action = alAction;
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        _ALData_id = [value integerValue];
    }
}
@end
